<script>
    let test = 1;
    ;(function(window,undefined){
        let jQuery = function(){

        }
        window.jQuery = window.$ = jQuery
    })(window)
    console.log($);
    console.log(jQuery);
</script>